﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Views/Shared/Site.Master" CodeBehind="ShowBlog.aspx.cs" Inherits="Press.MVC.Web.Views.Blog.ShowBlog" %>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">

<!-- Show the Blog header -->  

<!-- Show a Post Summary Listing with Posts listed by Date -->



   Blog Name: <%=ViewData.Model.Blog.Name %>
   <br />
   
   <%foreach (Press.MVC.Data.Post p in ViewData.Model.Blog.Posts) { %>
      <%=Html.RenderAppControl("PostSummaryListing.ascx",p)%>
   <%} %> 
    
    
    <br />
    <br />
    Categories:
   
    <% Html.RenderAction<Press.MVC.Web.Controllers.BlogController>(x => x.PostCategoryList(ViewData.Model.Blog.ID));%>
   
    
</asp:Content>
